
import 'package:flutter/material.dart';

class PageOne extends StatefulWidget {
  const PageOne({Key? key}) : super(key: key);

  @override
  _PageOneState createState() => _PageOneState();
}

class _PageOneState extends State<PageOne> {
  int count = 0;
  @override
  Widget build(BuildContext context) {
    debugPrint("重构第一个界面");

    return Column(
      children: [
        Text("点击了$count次"),
        ElevatedButton(onPressed: (){
          count++;
          setState(() {});
        }, child: const Text("刷新第一个页面"))
      ],
    );
  }
}
